@import "../../../../global.less";

@max-width: 360px;

h3 {
    margin: 0;
}

.search-result-content {
    width: @max-width+32px;
    padding: 0 16px 16px;
    position: relative;
    background-color: #fff;
    border: 1px solid #cccccc;
    max-height: 400px;
    overflow-y: auto;
}

.layer-search-input {
    width: @max-width;
}

.skip-label-creening {
    float: right;
    font-size: 14px;
    font-weight: normal;
    line-height: 26px;
    cursor: pointer;
    transition: color .3s;

    &:hover {
        color: @primary-color;
    }
}

.return-layers {
    transition: color .3s;
    cursor: pointer;

    &:hover {
        color: @primary-color;
    }
}

.layers-content {
    padding: 8px 24px;
    border-bottom: 1px solid #cccccc;
}

.layers-content-item {
    padding: 8px 0;
}

.layers {
    margin: 12px 0;
}

.display-color {
    width: 28px;
    height: 20px;
    vertical-align: bottom;
    float: right;
}

.label-search {
    margin: 12px 0;
}

.label-content {
    padding: 8px 24px;
}

.label-content-item {
    padding: 8px 24px;
}

.label-content-dropdown {
    transition: all .3s ease-in-out;
    cursor: pointer;

    &:hover {
        color: @primary-color;
    }
}

.location-dropdown-icon {
    transition: all .3s ease-in-out;
}

.reset {
    text-align: right;
    padding: 0 24px;

    span {
        cursor: pointer;
        transition: color .3s;

        &:hover {
            color: @primary-color;
        }
    }
}

.ol-popup {
    position: absolute;
    background-color: white;
    -webkit-filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
    padding: 22px;
    border-radius: 10px;
    border: 1px solid #ccc;
    bottom: 12px;
    left: -50px;
    max-height: 400px;
    overflow-x: auto;
}

.ol-popup:after, .ol-popup:before {
    top: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.ol-popup:after {
    border-top-color: white;
    border-width: 10px;
    left: 48px;
    margin-left: -10px;
}

.ol-popup:before {
    border-top-color: #ccc;
    border-width: 11px;
    left: 48px;
    margin-left: -11px;
}

.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 2px;
    right: 8px;

}

.ol-popup-closer:after {
    content: "✖";
    position: relative;
    right: -8px;
}
